﻿using MyAppAPI.Models;
using MyAppAPI.Repositories.interfaceRepo;
using MyAppAPI.Services.interfaceService;

namespace MyAppAPI.Services
{
    public class UserMenuService : IUserMenuService
    {
        public readonly IUserMenuRepository userMenuRepository;

        public UserMenuService(IUserMenuRepository userMenuRepository)
        {
            this.userMenuRepository = userMenuRepository;
        }
        public List<MenuInfo> GetMenuInfo(int userId)
        {
            return userMenuRepository.GetMenuInfo(userId);
        }
    }
}
